#include "stdio.h"
#include "string.h"
#include "stdlib.h"

int main(void)
{
  char buf[50] = "Hello,World,woo!";
  
  char *token = strtok(buf, ","); // 第一次调用，传入字符串
  while(token){
    printf("%s\n", token);
    token = strtok(NULL, ","); // 之后调用，传入NULL
  }

  return 0;
}